﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Reviewer.master" AutoEventWireup="true" CodeFile="default.aspx.cs" Inherits="Reviewer_default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .style1
        {
            height: 21px;
        }
        .style2
        {
            height: 5px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
    <script type ="text/javascript" language = "javascript">
        function OpenDialog(frmWin, width, height) {
            var me;
            var action;
            action = frmWin;
            // 把父页面窗口对象当作参数传递到对话框中，以便对话框操纵父页自动刷新。 
            me = "showDetails.aspx?action=" + action + "";
            // 显示对话框。
            window.showModalDialog(me, null, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;help:no;status:no')
          }
          function GetInfo(str) {
            var arg = window.dialogArguments;
            
          }
  </script>

    <table border="0" style="height: 150px; width: 935px">
  <tr>
    <td class="style2">
        <asp:Label ID="Label1" runat="server" Text="My Pending Review Case"></asp:Label>
      </td>
  </tr>
  <tr>
    <td class="style1">
        <asp:GridView ID="GridView1" runat="server" DataKeyNames="CaseId" AllowPaging="True" 
            onpageindexchanging="GridView1_PageIndexChanging" 
            onrowdatabound="GridView1_RowDataBound" AutoGenerateColumns="False" 
            onrowcommand="GridView1_RowCommand">
            <Columns>
<%--             <asp:TemplateField>
             <ItemTemplate>
            <a target="_blank" href="<%# ShowDetails((string)Eval("CaseId")) %>">Review</a>
             </ItemTemplate>
             </asp:TemplateField>--%>
             <asp:BoundField HeaderText = "Review" ReadOnly = "true"  />
             <asp:BoundField DataField = "CaseId" HeaderText = "CaseId" ReadOnly = "true" />
             <asp:BoundField DataField = "Age" HeaderText = "Age" ReadOnly = "true" />
             <asp:BoundField DataField = "Labor" HeaderText = "Total SR Labor(Mins)" ReadOnly = "true" />
             <asp:BoundField DataField = "Idle" HeaderText = "Idle(DD:HH)" ReadOnly = "true" />
             <asp:BoundField DataField = "Owner" HeaderText = "SR Owner" ReadOnly = "true" />
             <asp:BoundField DataField = "ReviewerName" HeaderText = "Reviewer" ReadOnly = "true" />
             <asp:BoundField DataField = "date" HeaderText = "Date" ReadOnly = "true" />
            </Columns>
        </asp:GridView>
      </td>
  </tr>
</table>

</asp:Content>

